#ifndef  _PRINTF_H_
#define  _PRINTF_H_

#ifdef _cplusplus
extern "C"{
#endif

#define MAX_PFBUFF_SIZE 128
typedef int (*PrintfFun)(const char* pszFormat, ...);

extern PrintfFun g_printFn;
#define Printf g_printFn

extern char g_Pfbuffer[MAX_PFBUFF_SIZE];

int __Printf( const char* ctrl1, ...);

#if PF_TO_NET
void Pf(unsigned char isToPfSocket);
#else
#define Pf(...);
#endif

#if WIN_32
extern PrintfFun TraceEx;
#endif

#ifdef _cplusplus
}
#endif

#endif             

